{layout name="layout" /}

<div class="Hui-article">
	<article class="cl pd-20" style="min-width: 900px;max-width: 80%;">
		<div class="cl pd-5 bg-1 bk-gray">
			<span class="l">
				<a href="javascript:;" onclick="del_all()" class="btn btn-danger radius">
					<i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
				<a class="btn btn-primary radius" href="/admin/admin_role/add.html">
					<i class="Hui-iconfont">&#xe600;</i> 添加角色</a>
			</span>
			<!-- <span class="r">共有数据：<strong>54</strong> 条</span>  -->
		</div>
		<div class="mt-10">
			<table class="table table-border table-bordered table-hover table-bg">
				<thead>
					<tr>
						<th scope="col" colspan="6">角色管理</th>
					</tr>
					<tr class="text-c">
						<th width="25">
							<input type="checkbox" value="" name="">
						</th>
						<th width="40px">ID</th>
						<th width="120px">角色名称</th>
						<th>权限id列表</th>
						<th width="80px">状态</th>
						<th width="80px">操作</th>
					</tr>
				</thead>
				<tbody>
					{foreach $data as $val}
					<tr class="text-c">
						<td>
							<input type="checkbox" value="{$val.id}" name="checkbox[]">
						</td>
						<td>{$val.id}</td>
						<td>{$val.name}</td>
						<td class="text-l">{$val.permission}</td>
						<td>{eq name="val.status" value="1"}
							<a href="javascript:void(0);" title="停用" onClick="down('down',this,'{$val.id}')" style="text-decoration:none">
								<span class="label label-success radius">启用</span>
							</a>
							{else/}
							<a href="javascript:void(0);" title="启用" onClick="down('up',this,'{$val.id}')" style="text-decoration:none">
								<span class="label label-default radius">停用</span>
							</a>{/eq}</td>
						<td class="f-14">
							<a title="编辑" href="{:url('edit','id='.$val.id)}" style="text-decoration:none">
								<i class="Hui-iconfont">&#xe6df;</i>
							</a>
							<a title="删除" href="javascript:;" onclick="del(this,'{$val.id}')" class="ml-5" style="text-decoration:none">
								<i class="Hui-iconfont">&#xe6e2;</i>
							</a>
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
		</div>
	</article>
</div>


<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript">
</script>
<!--请在上方写此页面业务相关的脚本-->